PATH![]() |
![]() ![]() |
Obtains the size and position of the bounding rectangle of the specified window region.
pascal OSStatus GetWindowBounds (
WindowPtr window,
WindowRegionCode regionCode,
Rect *globalBounds);
When you call the function SetWindowBounds , your application specifies whether the window's content region or its structure region is more important in determining the window's ultimate size and position. This distinction can be important with versions of the Mac OS running the Appearance Manager, since the total dimensions of a window--and, therefore, its spatial relationship to the rest of the screen--may vary from appearance to appearance. Use the GetWindowBounds function to obtain the bounding rectangle for either of these regions for the specified window.